<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Language" content="zh-tw" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  </head>
  <body>
    
<?php


date_default_timezone_set('Asia/Taipei');
set_time_limit(600); //變數是秒(sec) 600/60=10分鐘
include_once '../../gmanager.class.php';


$excel = Gmanager::get('excel_data_manager');
$excel->setFile('sample.xls');


echo '<pre style="background-color:#def;color:#000;text-align:left;font-size:10px;font-family:dina,GulimChe;">';
echo '顯示簡易 sheet excel table 樣式';
echo $excel->getSheetTableHtml( $index=1 );

echo '<br /><br />';
echo 'get rows by sheet index<br />';
print_r( $excel->getRowsArray( $defaultIndex=0 ) );

echo '<br /><br />';
echo 'get all rows<br />';
print_r( $excel->getAllRowsArray() );

echo '<br /><br />';
echo 'show excel and sheet information<br />';
print_r( $excel->getInfo() );

echo "</pre>\n";